package com.qk.service;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.entity.Course;

import java.time.LocalDateTime;
import java.util.List;

public interface CourseService {

    PageResult<Course> list(String name, Integer subject, Integer target, Integer page, Integer pageSize);

    void deleteById(Integer id);

    Result add(Course course);

    Course getById(Integer id);

    void update(Course course);

    List<Course> subjectList(Integer subject);

    Result allList(String name, Integer subject, Integer target, LocalDateTime createTime, LocalDateTime updateTime);

}
